package com.situ.crm.oss;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.core.env.Environment;

/**
 * @ClassName CrmOssApplication
 * @Description TODO
 * @Author 周轩霆
 * @Date 2022/10/25 19:32
 **/
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class CrmOssApplication {
    private static final Logger LOG = LoggerFactory.getLogger(CrmOssApplication.class);

    public static void main(String[] args) {
        // SpringApplication.run(WikiApplication.class, args);
        SpringApplication app = new SpringApplication(CrmOssApplication.class);
        Environment environment = app.run(args).getEnvironment();
        LOG.info("启动成功");
        LOG.info("地址:\thttp://127.0.0.1:{}", environment.getProperty("server.port"));
    }
}
